


<!DOCTYPE html>
<html id="htmlId">
<head>
  <title>Coverage Report > Grade</title>
  <style type="text/css">
    @import "../../.css/coverage.css";
    @import "../../.css/highlight-idea.css";
  </style>
  <script type="text/javascript" src="../../.js/highlight.pack.js"></script>
</head>

<body>
<div class="content">
<div class="breadCrumbs">
Current scope:     <a href="../../index.html">all classes</a>
    <span class="separator">|</span>
    <a href="../index.html">&lt;empty package name&gt;</a>
</div>

<h1>Coverage Summary for Class: Grade (&lt;empty package name&gt;)</h1>

<table class="coverageStats">
<tr>
  <th class="name">Class</th>
<th class="coverageStat 
">
  Class, %
</th>
<th class="coverageStat 
">
  Method, %
</th>
<th class="coverageStat 
">
  Line, %
</th>
</tr>
<tr>
  <td class="name">Grade</td>
<td class="coverageStat">
  <span class="percent">
    100%
  </span>
  <span class="absValue">
    (1/1)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    33.3%
  </span>
  <span class="absValue">
    (1/3)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    64.3%
  </span>
  <span class="absValue">
    (18/28)
  </span>
</td>
</tr>

</table>

<br/>
<br/>


<pre>
<div class="sourceCode" id="sourceCode"><i class="no-highlight">1</i>&nbsp;import java.util.Scanner;
<i class="no-highlight">2</i>&nbsp;
<b class="nc"><i class="no-highlight">3</i>&nbsp;public class Grade {</b>
<i class="no-highlight">4</i>&nbsp;        public static int levelin(int num) {
<b class="fc"><i class="no-highlight">5</i>&nbsp;            int level = num;</b>
<b class="fc"><i class="no-highlight">6</i>&nbsp;            int ss = 0;</b>
<b class="fc"><i class="no-highlight">7</i>&nbsp;            if (level &lt; 50 &amp;&amp; level &gt; 0) {</b>
<b class="fc"><i class="no-highlight">8</i>&nbsp;                ss = 1;</b>
<b class="fc"><i class="no-highlight">9</i>&nbsp;            } else if (level &gt;= 50 &amp;&amp; level &lt; 200) {</b>
<b class="fc"><i class="no-highlight">10</i>&nbsp;                ss = 2;</b>
<b class="fc"><i class="no-highlight">11</i>&nbsp;            } else if (level &gt;= 200 &amp;&amp; level &lt; 500) {</b>
<b class="fc"><i class="no-highlight">12</i>&nbsp;                ss = 3;</b>
<b class="fc"><i class="no-highlight">13</i>&nbsp;            } else if (level &gt;= 500 &amp;&amp; level &lt; 800) {</b>
<b class="fc"><i class="no-highlight">14</i>&nbsp;                ss = 4;</b>
<b class="fc"><i class="no-highlight">15</i>&nbsp;            } else if (level &gt;= 800 &amp;&amp; level &lt; 1300) {</b>
<b class="fc"><i class="no-highlight">16</i>&nbsp;                ss = 5;</b>
<b class="fc"><i class="no-highlight">17</i>&nbsp;            } else if (level &gt;= 1300 &amp;&amp; level &lt; 2000) {</b>
<b class="fc"><i class="no-highlight">18</i>&nbsp;                ss = 6;</b>
<b class="fc"><i class="no-highlight">19</i>&nbsp;            } else if (level &gt;= 2000) {</b>
<b class="fc"><i class="no-highlight">20</i>&nbsp;                ss = 7;</b>
<i class="no-highlight">21</i>&nbsp;            } else {
<b class="fc"><i class="no-highlight">22</i>&nbsp;                ss = 8;</b>
<i class="no-highlight">23</i>&nbsp;            }
<b class="fc"><i class="no-highlight">24</i>&nbsp;            return ss;</b>
<i class="no-highlight">25</i>&nbsp;        }
<i class="no-highlight">26</i>&nbsp;        public static void main(String[] args){
<b class="nc"><i class="no-highlight">27</i>&nbsp;            Scanner scanner = new Scanner(System.in);</b>
<b class="nc"><i class="no-highlight">28</i>&nbsp;            System.out.println(&quot;�������������ݣ�&quot;);</b>
<b class="nc"><i class="no-highlight">29</i>&nbsp;            int level = scanner.nextInt();</b>
<b class="nc"><i class="no-highlight">30</i>&nbsp;            scanner.close();</b>
<b class="nc"><i class="no-highlight">31</i>&nbsp;            int Level = levelin(level);</b>
<b class="nc"><i class="no-highlight">32</i>&nbsp;            if(Level!=0&amp;&amp;Level!=8){</b>
<b class="nc"><i class="no-highlight">33</i>&nbsp;                System.out.println(&quot;����ȼ�&quot;+Level);</b>
<i class="no-highlight">34</i>&nbsp;            }
<i class="no-highlight">35</i>&nbsp;            else{
<b class="nc"><i class="no-highlight">36</i>&nbsp;                System.out.println(&quot;���������룡&quot;);</b>
<i class="no-highlight">37</i>&nbsp;            }
<b class="nc"><i class="no-highlight">38</i>&nbsp;        }</b>
<i class="no-highlight">39</i>&nbsp;}
<i class="no-highlight">40</i>&nbsp;
<i class="no-highlight">41</i>&nbsp;
</div>
</pre>
</div>

<script type="text/javascript">
(function() {
    var msie = false, msie9 = false;
    /*@cc_on
      msie = true;
      @if (@_jscript_version >= 9)
        msie9 = true;
      @end
    @*/

    if (!msie || msie && msie9) {
        var codeBlock = document.getElementById('sourceCode');

        if (codeBlock) {
            hljs.highlightBlock(codeBlock);
        }
    }
})();
</script>

<div class="footer">
    
    <div style="float:right;">generated on 2021-12-21 16:39</div>
</div>
</body>
</html>
